<%@ page contentType="text/html;charset=UTF-8"%>
<jsp:include page="/all/base.jsp" />
<html>
<head>
    <title></title>
    <script src="jquery/easyui/Default.js" type="text/javascript"></script>
	<link href="css/index.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
		$(function () {
			$.get('${contextPath}/resources/setting/getCurrentUser', function(data) {
				$("#username").text(data.username);
        	}, "json");
		});
	</script>
</head>
<body class="easyui-layout" style="overflow-y: hidden">
    <noscript>
        <div style="position: absolute; z-index: 100000; height: 2046px; top: 0px; left: 0px;
            width: 100%; background: white; text-align: center;">
            <img src="images/noscript.gif" alt='抱歉，请开启脚本支持！' />
        </div>
    </noscript>

    <div region="north" align="center" style="overflow:hidden; line-height:5px;">
        <div id="header"> 
						<div id="header-inner"> 
				<table cellpadding="0" cellspacing="0" style="width:100%;"> 
					<tr style="width:100%;align:center;"> 
						<td rowspan="2" style="width:200px;">
							<span style="font-size:30px;">后台管理系统</span>
						</td>
						<td style="padding-right:5px;text-align:right;vertical-align:bottom;"> 
							<div id="topmenu">
								<a id="username" href="#">${currentUser.username}</a>
								<a href="${pageContext.request.contextPath}/j_spring_security_logout">退出</a>
							</div> 
						</td> 
					</tr> 
				</table> 
			</div> 
		</div>
    </div>
    <div region="west" split="true" style="width: 180px;overflow:hidden;">
        <div id="menu" class="easyui-accordion" fit="true" border="false">
            <div class="topMenuClass" title="管理员菜单" style="padding: 10px;" icon="icon-edit">
            	<a href="#" class="easyui-linkbutton" url="${pageContext.request.contextPath}/rms/m_res.jsp">资源管理</a>
            	<a href="#" class="easyui-linkbutton" url="${pageContext.request.contextPath}/rms/m_role_res.jsp">角色-资源管理</a>
				<a href="#" class="easyui-linkbutton" url="${pageContext.request.contextPath}/rms/m_role.jsp">用户组管理</a>
            </div>
        </div>
    </div>
    <div region="center" id="mainPanle" style="overflow:hidden;">
        <div id="tabs" class="easyui-tabs" fit="true" border="false" plain="true">
            <div title="欢迎使用" style="padding: 20px;" id="home">
                <iframe name="mainFrame" scrolling="auto" frameborder="0" style="width:100%;height:100%;overflow:auto;"></iframe>
            </div>
        </div>
    </div>
</body>
</html>